<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?
  include "conexao.php" ;
  $conec ;
  $bco ;
  
    include "cabecalho.php" ;
    $login = $_POST['txlogin'] ;
     
	$stgsql = $conec->prepare("select * from usu 
							  where username = \"$login\"");  
	$stgsql->execute();

	if ($stgsql->rowCount() > 0){
	  $dados = $stgsql->fetch();
	  $login = $dados['username'] ;
	  $senha = $dados['senha'] ;
	  $nome = $dados['nome'] ;
	  $email = $dados['email'] ;
	  include "frmaltera02.php" ;

	} else {
	  include "funcionarionaoexiste.php" ;
	  
	}
			
    include "rodape.php" ;
  ?>
</body>
</html>
